package com.rran.study.designpattern.behavioral.chain.enums;

/**
 * 责任链类型枚举
 * 在bean初始化时通过ChainType找到所有的具体的action
 */
public enum ChainType {

    ATTACK("ATTACK", AttackChainAction.ATTACK_A),
    ;

    ChainType(String name, AttackChainAction action) {
        this.action = action;
        this.name = name;
    }

    private String name;
    private AttackChainAction action;

    public ChainAction getAction(){
        return this.action;
    }
}
